﻿<%@ Page Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="UpdateMessage.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.Messaging.UpadateMessage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table class="style1">
    <tr>
        <td class="style2">
            <asp:Label ID="lblHeading" runat="server" 
                style="font-size: medium; font-weight: 700">Update Message</asp:Label>
        </td>
        <td class="style3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblSubHeading" runat="server" style="font-weight: 700">Message Details</asp:Label>
        </td>
        <td class="style3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            From*:</td>
        <td class="style3">
            <asp:DropDownList ID="ddlFrom" runat="server" AutoPostBack="True" 
                onselectedindexchanged="ddlFrom_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Broadcast:</td>
        <td class="style3">
            <asp:CheckBox ID="chkBroadcast" runat="server" AutoPostBack="True" 
                oncheckedchanged="chkBroadcast_CheckedChanged" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Branch*:</td>
        <td class="style3">
            <asp:DropDownList ID="ddlBranch" runat="server" AutoPostBack="True" 
                onselectedindexchanged="ddlBranch_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Unit*:</td>
        <td class="style3">
            <asp:DropDownList ID="ddlUnit" runat="server" AutoPostBack="True" 
                onselectedindexchanged="ddlUnit_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            SO Code*:</td>
        <td class="style3">
            <asp:DropDownList ID="ddlSOCode" runat="server" AutoPostBack="True">
            </asp:DropDownList>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Message</td>
        <td class="style3">
            <asp:TextBox ID="txtMessage" runat="server" TextMode="MultiLine"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtMessage" Display="Dynamic" 
                ErrorMessage="Please insert the message."></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td class="style3">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnUpdate" runat="server" Text="Update" 
                style="width: 56px" onclick="btnUpdate_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnCancel" runat="server" Text="Cancel"  style="height: 26px" 
                Width="61px" onclick="btnCancel_Click" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td class="style3">
            <asp:Label ID="lblError" runat="server"></asp:Label>
        </td>
        <td>
            &nbsp;</td>
    </tr>
</table>
  </asp:Content>